package schoolWork.Test5;

public class CharacterCount {
    public static int characterCount(String s, char ch){
        int cnt = 0;
        for(int i = 0; i < s.length(); i++)
        {
            char c = s.charAt(i);
            if(c == ch)
            {
                cnt++;
            }
        }
        return cnt;
    }
}
